/**
 * PostOffice.java
 * create by Lisq
 * date 2014-3-4
 */
package com.lsq.men_mian_mo_shi;

/**
 * @author Lisq
 */
public class PostOffice {

	private LetterProcess letterProcess= new LetterProcessImpl();
	private Police police = new Police();
	
	public void sendLetter(String context, String address){
		//帮你写信
		letterProcess.writeContext(context);
		//帮写地址
		letterProcess.fillEnvelope(address);
		//警察叔叔要检查信件了..
		police.checkLetter(letterProcess);
		//封好信封
		letterProcess.letterIntoEnvelope();
		//送信
		letterProcess.sendLetter();
	}
}
